/**
 * 
 */
package org.hackystat.ui.telemetryviewer.client.common;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author David J. Nickles
 *
 */
public class DatasetConveyor implements IsSerializable {
  
  /** 
   *  This field is a List that must always contain Datasets.
   *  
   *  @gwt.typeArgs <org.hackystat.ui.telemetryviewer.client.common.DatasetParcel> 
   */
  private ArrayList parcels;
  private String status;
  private String message;

  /**
   * No parameters constructor.
   */
  public DatasetConveyor() {
    super();
    /**  @gwt.typeArgs <org.hackystat.ui.telemetryviewer.client.common.DatasetParcel> */
    this.parcels = new ArrayList();
    this.status = Boolean.FALSE.toString();
  }

  /**
   * Get the status string associated with this dataset.
   * @return TRUE if getData was successful or error string if it was not.
   */
  public String getMessage() {
    return this.message;
  }

  /**
   * Set the status string associated with this dataset.
   * @param message TRUE if getData was successful or error string if it was not.
   */
  public void setMessage(String message) {
    this.message = message;
  }

  /**
   * Get the status string associated with this dataset.
   * @return TRUE if getData was successful or error string if it was not.
   */
  public String getStatus() {
    return this.status;
  }

  /**
   * Set the status string associated with this dataset.
   * @param status TRUE if getData was successful or error string if it was not.
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * @return the streams of this chart.
   * 
   * @gwt.typeArgs <org.hackystat.ui.telemetryviewer.client.common.DatasetParcel>
   */
  public ArrayList getStreams() {
    return this.parcels;
  }

  /**
   * @param streams the streams to set.
   * 
   * @gwt.typeArgs streams <org.hackystat.ui.telemetryviewer.client.common.DatasetParcel>
   */
  public void setStreams(ArrayList streams) {
    this.parcels = streams;
  }
}
